package pri.jz.keeper.db

import android.app.Application
import androidx.room.Room
import pri.jz.keeper.R

/**
 *Author by: JZ
 *Email: 2451756617@qq.com
 *PS:
 */
class App : Application() {

    override fun onCreate() {
        super.onCreate()
        db = Room.databaseBuilder(
            this,AppDatabase::class.java,
            getString(R.string.room_table_name)
        ).build()
    }

    companion object {
        lateinit var db: AppDatabase
    }
}